package com.qingxin.park.vo;

import java.util.List;

import org.codehaus.jackson.map.annotate.JsonSerialize;

@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class TraceData {
	
	private int code;//状态200成功，否则出错
	private String error;//出错时的错误信息
	private int type;//类型：1种植、2养殖、3加工
	
	private TraceCompany company;
	private List<TracePark> parks;
	
	private TracePark park;
	private TraceProduct product;
	
	private List<TraceGroup> groups;
	private List<TraceRecord> records;
	
	private List<TraceReport> reports;
	
	public TraceData() {
	}
	
	
	public TraceData(int code, String error, int type) {
		this.code = code;
		this.error = error;
		this.type = type;
	}


	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}


	public TraceCompany getCompany() {
		return company;
	}

	public void setCompany(TraceCompany company) {
		this.company = company;
	}

	public List<TracePark> getParks() {
		return parks;
	}

	public void setParks(List<TracePark> parks) {
		this.parks = parks;
	}

	public TracePark getPark() {
		return park;
	}

	public void setPark(TracePark park) {
		this.park = park;
	}

	public TraceProduct getProduct() {
		return product;
	}

	public void setProduct(TraceProduct product) {
		this.product = product;
	}

	public List<TraceGroup> getGroups() {
		return groups;
	}

	public void setGroups(List<TraceGroup> groups) {
		this.groups = groups;
	}

	public List<TraceRecord> getRecords() {
		return records;
	}

	public void setRecords(List<TraceRecord> records) {
		this.records = records;
	}

	public List<TraceReport> getReports() {
		return reports;
	}

	public void setReports(List<TraceReport> reports) {
		this.reports = reports;
	}

}
